package com.vogelsk.archangelsk.gui;

import java.awt.image.RGBImageFilter;

public class GreenRedSwapFilter extends RGBImageFilter {
	    public GreenRedSwapFilter() {
		// The filter's operation does not depend on the
		// pixel's location, so IndexColorModels can be
		// filtered directly.
		canFilterIndexColorModel = true;
	    }
	    public int filterRGB(int x, int y, int rgb) {
			return ((rgb & 0xff00ff00)
				| ((rgb & 0xff0000) >> 16)
				| ((rgb & 0xff) << 16));
		    }
	}


